home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-25 | 1.4 KB | 41 lines | [TEXT/GEOL] |
- Item 1185657 22-May-90 13:32DST
-
- From: UK0016 Icon Technology UK,IDV
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: MACDTS Macintosh Developer Tech Supt
-
- Sub: MacApp 2.0ß9 Dialog Bug
-
- I have found a bug in MacApp 2.0ß9.
-
- I have a dialog with 2 edit text fields with the fMaxChars value for one of the
- fields smaller than than that of the other. If I try and tab from the shorter
- field to the longer field and length of the text in the longer field exceeds
- the fMaxChars value of the shorter field, then MacApp forces a failure in
- TTEView.StuffText.
-
- The problem seems to be in TDialogTEView.InstallEditText which doesn't update
- the fMaxChars field until after the call of SetText. I have moved the
- assignment to fMaxChars and it now works OK.
-
- ===============================================================================
- ...
- theEditText.GetText(theText);
- fMaxChars := theEditText.fMaxChars; {moved from below}
- SetText(theText); {this calls StuffText}
- RecalcText;
- IF selectChars THEN
- SetSelect(0, MAXINT, fHTE)
- ELSE
- SetSelect(0, 0, fHTE);{ Caller will set the selection. }
- {fMaxChars := theEditText.fMaxChars; old position}
- ...
- ===============================================================================
-
- Apologies if this has been reported 100 times already.
-
- Regards, Keith Lander
-
-